/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 
 * @author z.ciok@poltman.com
 * 
 */
@Entity
@Table(name="community")
public class CommunityEntity  implements Serializable {

	private static final long serialVersionUID = -4275941743648789761L;

	public CommunityEntity() { }
	
    @Id
    @SequenceGenerator(name="community_seq", sequenceName="community_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="community_seq") 
    @Column(name="community_id")
    private Integer communityId;
 
    @Column(name="name")
    private String name;
    
    @Column(name="short_description")
    private String shortDescription;
    
    @Column(name="introductory_text")
    private String introductoryText;
    
    @Column(name="logo_bitstream_id")
    private Integer logoBitstreamId;
    
    @Column(name="copyright_text")
    private String copyrightText;
    
    @Column(name="side_bar_text")
    private String sideBarText;
    
    @Column(name="admin")
    private Integer admin;

	public Integer getCommunityId() {
		return communityId;
	}
	public void setCommunityId(Integer communityId) {
		this.communityId = communityId;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getShortDescription() {
		return shortDescription;
	}
	public void setShortDescription(String shortDescription) {
		this.shortDescription = shortDescription;
	}

	public String getIntroductoryText() {
		return introductoryText;
	}
	public void setIntroductoryText(String introductoryText) {
		this.introductoryText = introductoryText;
	}

	public Integer getLogoBitstreamId() {
		return logoBitstreamId;
	}
	public void setLogoBitstreamId(Integer logoBitstreamId) {
		this.logoBitstreamId = logoBitstreamId;
	}

	public String getCopyrightText() {
		return copyrightText;
	}
	public void setCopyrightText(String copyrightText) {
		this.copyrightText = copyrightText;
	}

	public String getSideBarText() {
		return sideBarText;
	}
	public void setSideBarText(String sideBarText) {
		this.sideBarText = sideBarText;
	}

	public Integer getAdmin() {
		return admin;
	}
	public void setAdmin(Integer admin) {
		this.admin = admin;
	}
}
